#include <iostream>

#include "ClientCalculator.hpp"

using namespace std;

void Usage()
{
    std::cout << "\n\t" << "Usage: ./clientcal ip port[>1024]" << std::endl
              << std::endl;
}

int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        Usage();
        exit(0);
    }

    std::string ip = argv[1];
    uint16_t port = std::stoi(argv[2]);
    TcpClient client(ip, port);
    client.Init();
    client.Start();

    return 0;
}